<template>
  <el-card shadow="never">
    <div slot="header">
      <el-button @click="handleBack">返回</el-button>
    </div>
    <detail-form @search="handleSearch" ref="form" />
    <detail-table ref="detailTable" />
  </el-card>
</template>

<script>
import { getSession, setSession, removeSession } from '@/utils/util'
import DetailForm from './DetailForm'
import DetailTable from './DetailTable'
export default {
  components: {
    DetailForm,
    DetailTable
  },
  methods: {
    handleBack() {
      this.$router.go(-1)
    },
    handleSearch(param) {
      this.$nextTick(() => {
        this.$refs.detailTable.handleGetList(param)
      })
    }
  }
}
</script>
